<template>
    <section class="jumbotron">
      <h3 class="jumbotron-heading">Search Github Users</h3>
      <div>
        <input type="text" placeholder="enter the name you search" v-model="keywoder"/>
        <button @click="seatchck">Search</button>
      </div>
    </section>
</template>

<script>
  export default {
    name:'SeatchHeader',
    data(){
      return{
        keywoder:''
      }
    },
    methods: {
      seatchck(){
        if(this.keywoder){
          this.$bus.$emit('seatch',this.keywoder)
        }

        this.keywoder = ''
      }
    }
  }
</script>

<style scoped>
  
</style>